package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AgentRule;
import com.weixing.mall.provider.model.query.AgentRuleQuery;
import com.weixing.mall.provider.model.vo.AgentRuleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 代理商模块-代理商晋升规则表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface AgentRuleMapper extends BaseMapper<AgentRule> {
    /**
     * @Description 查询 <br/>
     * @author gjq
     * @date 2019/9/23 17:13
     * @param agentRuleQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.AgentRuleVo>
     */
    List<AgentRuleVo> selectListOfPage(@Param("qs")AgentRuleQuery agentRuleQuery);

    /**
     * @Description 分页查询 <br/>
     * @author gjq
     * @date 2019/11/19 10:10
     * @param page
     * @Param: agentRuleQuery
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.weixing.mall.provider.model.vo.AgentRuleVo>
     */
    IPage<AgentRuleVo> selectListOfPage(@Param("pg") Page page, @Param("qs")AgentRuleQuery agentRuleQuery);
}